gpsbabel.git
6 years agouse Qt containers for format/style/filter vecs.
tsteven4 [Thu, 21 Nov 2019 16:37:25 +0000 (09:37 -0700)]
use Qt containers for format/style/filter vecs.

6 years agoMerge pull request #423 from tsteven4/clazy-fixes
tsteven4 [Wed, 20 Nov 2019 20:07:51 +0000 (13:07 -0700)]
Merge pull request #423 from tsteven4/clazy-fixes

* fix c++11 range-loop might detach Qt container

clazy 1.6, clazy-range-loop

* fix Missing reference on non-trivial type

clazy 1.6, clazy-function-args-by-ref

6 years agofix Missing reference on non-trivial type
tsteven4 [Wed, 20 Nov 2019 18:32:07 +0000 (11:32 -0700)]
fix Missing reference on non-trivial type

clazy 1.6, clazy-function-args-by-ref

6 years agofix c++11 range-loop might detach Qt container
tsteven4 [Wed, 20 Nov 2019 18:21:05 +0000 (11:21 -0700)]
fix c++11 range-loop might detach Qt container

found with clazy 1.6

6 years agofix format vector consistency issues (#422)
tsteven4 [Wed, 20 Nov 2019 17:57:48 +0000 (10:57 -0700)]
fix format vector consistency issues (#422)

* fix format vector consistency issues.

* fix leaks in sort_and_unify_vecs.

* fix vec init for msvc2015.

* Revert "fix vec init for msvc2015."

This reverts commit 02b85801ee4d1de24101713fbd85c33238da6183.

* Revert "fix leaks in sort_and_unify_vecs."

This reverts commit d634c21f9f7767d198750e61ba426eb7850127a9.

* only validate formats for real types.

6 years agoReplace libusb 0.1 usage with libusb 1.0 (#396)
tsteven4 [Thu, 14 Nov 2019 17:31:36 +0000 (10:31 -0700)]
Replace libusb 0.1 usage with libusb 1.0 (#396)

Replace our modified libusb 0.1.12 with libusb 1.0.22 on macos. On macos we statically link to our inclcuded libusb.
Use libusb 1.0 instead of libusb 0.1 on linux. On linux we dynamically link to a distribution provided libusb, or optionally build without libusb support.

6 years agoupdate Qt to 5.12.6 (#420)
tsteven4 [Wed, 13 Nov 2019 20:10:40 +0000 (13:10 -0700)]
update Qt to 5.12.6 (#420)

6 years agoCorrect Bundle Identifier for macos using recommended reverse (#419)
tsteven4 [Wed, 6 Nov 2019 19:52:47 +0000 (12:52 -0700)]
Correct Bundle Identifier for macos using recommended reverse (#419)

DNS format.

Build a bundle with the cmake flow on macos.

Delete gpsbabelfe script that messed with LD_LIBRARY_PATH and
then executed gpsbabelfe-bin. This file was obsolete, and
it's existence upset Xcode (entitlement file handling).

6 years agoclean up "No newline at end of file" (#418)
tsteven4 [Wed, 30 Oct 2019 15:30:47 +0000 (09:30 -0600)]
clean up "No newline at end of file" (#418)

and delete an empty test file.

6 years agoMerge pull request #410 from gpsbabel/docbook2
GPSBabel [Wed, 30 Oct 2019 07:04:26 +0000 (02:04 -0500)]
Merge pull request #410 from gpsbabel/docbook2

Dev Doc fix: Document Qt, Qmake better.

6 years agoMerge pull request #411 from gpsbabel/docbook3
GPSBabel [Wed, 30 Oct 2019 07:00:49 +0000 (02:00 -0500)]
Merge pull request #411 from gpsbabel/docbook3

Repair inconsistencies in xsl docbook source

6 years agoMerge pull request #417 from gpsbabel/docbook5
GPSBabel [Wed, 30 Oct 2019 06:55:49 +0000 (01:55 -0500)]
Merge pull request #417 from gpsbabel/docbook5

Docbook cleanup

6 years agoMerge pull request #395 from gromit1811/fit_write_support
GPSBabel [Wed, 30 Oct 2019 06:53:19 +0000 (01:53 -0500)]
Merge pull request #395 from gromit1811/fit_write_support

Implement FIT writing support

6 years agom241: Document serial port hardware
Robert Lipe [Tue, 29 Oct 2019 02:47:34 +0000 (21:47 -0500)]
m241: Document serial port hardware

Hint that yellow m241 uses SiLabs CP210x. Red m241 is dead to us and the whole company is even more dead.

6 years agoCleanup of dangling doc files for dead formats
Robert Lipe [Sun, 27 Oct 2019 18:41:39 +0000 (13:41 -0500)]
Cleanup of dangling doc files for dead formats

Formats in deprecated/  don't need live doc.
Reformatted our largest xmldoc files.

6 years agoRepair inconsistencies in xsl docbook source
Robert Lipe [Sun, 27 Oct 2019 08:44:29 +0000 (03:44 -0500)]
Repair inconsistencies in xsl docbook source

6 years agoDev Doc fix: Document Qt, Qmake better.
Robert Lipe [Sun, 27 Oct 2019 08:05:33 +0000 (03:05 -0500)]
Dev Doc fix: Document Qt, Qmake better.

Better enumerate dependencies
Describe Qt Crerator
Improve internal linking
Fix trailing spaces

6 years agoImplement FIT writing support
Martin Buck [Sun, 17 Mar 2019 22:46:54 +0000 (23:46 +0100)]
Implement FIT writing support

Generate FIT courses from tracks+waypoints. Waypoints get mapped to course
points (generic by default, left/right turns if waypoint names contain the
string "left"/"right" or their equivalents in German, French, Spanish,
Italian).

If the original track contains neither time stamps nor speed values,
a fixed speed of 10 km/h gets assigned to the whole course.

Resulting FIT files have been tested and are accepted by a Garmin Edge 130
unit, but are assumed to be usable with any GPS unit supporting FIT.

Track segement markers are ignored at the moment.

6 years agoupdate qt to 5.12.5 (#403)
tsteven4 [Wed, 2 Oct 2019 21:56:08 +0000 (15:56 -0600)]
update qt to 5.12.5 (#403)

6 years agoMerge pull request #400 from jspricke/manpage_xml
GPSBabel [Mon, 23 Sep 2019 16:36:06 +0000 (11:36 -0500)]
Merge pull request #400 from jspricke/manpage_xml

Fix manpage xml

6 years agoMerge pull request #401 from spacelama/master
GPSBabel [Mon, 23 Sep 2019 16:35:04 +0000 (11:35 -0500)]
Merge pull request #401 from spacelama/master

Don't dump garmin_fit from Lezyne "Super Fit" devices just because occasionally the endian field is not 0 or 1, leading to the question if that's an endianness field at all.

6 years agocorrect reference file for garmin_fit lezyne super gps - probably originally converte...
Tim Connors [Sun, 22 Sep 2019 10:36:44 +0000 (20:36 +1000)]
correct reference file for garmin_fit lezyne super gps - probably originally converted using wrong flags

6 years agoThe lezyne "super gps", every 10th ride or so, outputs a .fit file
Tim Connors [Sat, 14 Sep 2019 12:06:06 +0000 (22:06 +1000)]
The lezyne "super gps", every 10th ride or so, outputs a .fit file
that is entirely valid other than a weird non 0/1 endian field.  Don't
dump the data just because of that.

6 years agoFix manpage xml
Jochen Sprickerhof [Tue, 3 Sep 2019 19:06:38 +0000 (21:06 +0200)]
Fix manpage xml

6 years agofix lowranceusr4 writer issues (#376)
tsteven4 [Thu, 29 Aug 2019 15:38:04 +0000 (09:38 -0600)]
fix lowranceusr4 writer issues (#376)

* fixes for lowraneusr writer for versions >= 4.

use fs_chain_find when looking for FS_LOWRANCEUSR4 data.
and check for nullptr to verify FS_LOWRANCEUSR4 data exists.

* using rounding in lowranceusr lat/lon conversions.

This gives as a chance of usr->gpx->usr matching.

Update gpsbabel generated usr reference files for these
rounding differences.

* fix lowranceusr4 writer issues.

when writing embedded UTF-16LE strings in lowranceusr version >=4
don't inlucde BOM.

don't offset returned values from lowranceusr4_jd_from_timestamp
by 12 hours, thus matching the inverse transformation in
lowranceusr4_get_timestamp.

when writing lowranceusr version >=4 trails output the given number
of mysterious attribute bytes, i.e. 0.

This almost enables a gpx -> usr -> gpx test loop, which is included
but commented in lowranceusr.test.

* fixes to enable lowranceusr v4 round trip testing.

use templates for lowranceusr*_find_desc_from_icon_number
and lowranceusr*_find_icon_number_from_desc.

enhance lowranceusr*_find_icon_number_from_desc to
recongnize icon-n where n is an integer as icon number n.
This is necessary for the v4 round trip test.

declare lowranceusr*_find_desc_from_icon_number to be static
to limit visibilty. Drop const return type.

declare lowranceusr4_find_color_from_icon_number_plus_color_index
to be static to limit visiblity.

* fix new lowranceusr memory leak.

6 years agofix minor error in garmin_fit lat/lon conversion. (#398)
tsteven4 [Wed, 28 Aug 2019 18:32:52 +0000 (12:32 -0600)]
fix minor error in garmin_fit lat/lon conversion. (#398)

6 years agoStandardize resource access (#393)
tsteven4 [Sat, 10 Aug 2019 18:03:25 +0000 (12:03 -0600)]
Standardize resource access (#393)

* standardize resource access.

avoid search paths (use :/).
specify extensions.
ok/cancel only on windows.

* fix missing icon for file input in options dialog.

It appears the image was renamed when used on the main window UI
in the inputFileNameBrowseBtn.
The same icon, open.png, is now used on the options dialog for
OPTinFile.
This fixes #392.

6 years agofix interaction between translation and lights. (#390)
tsteven4 [Thu, 8 Aug 2019 13:39:37 +0000 (07:39 -0600)]
fix interaction between translation and lights. (#390)

When using a language other than English the initial painting of
the gui mainwindow showed the placeholder text for the labels next
to the waypoints, routes and tracks check boxes instead of the
lights.  This was issue #389.

6 years agodon't compile unwanted module serial_unix.cc on mac. (#388)
tsteven4 [Wed, 7 Aug 2019 13:37:12 +0000 (07:37 -0600)]
don't compile unwanted module serial_unix.cc on mac. (#388)

* don't compile serial_unix.cc on mac.

* remove unnecessary conditional in serial_unix.cc

File is no longer in SOURCES for mac, so we don't need to use a
conditional to skip the contents on mac.

6 years agoUpdate README.contrib to reference GitHub (#383)
Chris Mayo [Tue, 6 Aug 2019 17:00:24 +0000 (18:00 +0100)]
Update README.contrib to reference GitHub (#383)

6 years agoMerge branch 'master' of https://github.com/gpsbabel/gpsbabel
Robert Lipe [Thu, 1 Aug 2019 06:47:12 +0000 (01:47 -0500)]
Merge branch 'master' of https://github.com/gpsbabel/gpsbabel

6 years agoFix a missed newline after Verion in debug code for Garmin Protocol.
Robert Lipe [Thu, 1 Aug 2019 06:46:30 +0000 (01:46 -0500)]
Fix a missed newline after Verion in debug code for Garmin Protocol.

6 years agoMerge pull request #377 from jspricke/no_makeflags
GPSBabel [Thu, 1 Aug 2019 04:09:36 +0000 (23:09 -0500)]
Merge pull request #377 from jspricke/no_makeflags

Don't pass MAKEFLAGS to $(MAKE)

6 years agoFix Garmin debugging for "funny" characters. Isalnum() prints single byte characters...
Robert Lipe [Thu, 1 Aug 2019 00:06:16 +0000 (19:06 -0500)]
Fix Garmin debugging for "funny" characters. Isalnum() prints single byte characters that aren't ASCII, making funny business in iTerm. Yes, all those should be refactored into a single "print buffer".

6 years agoTry to make the 'resettime' work per
Robert Lipe [Wed, 31 Jul 2019 23:44:09 +0000 (18:44 -0500)]
Try to make the 'resettime' work per
https://github.com/gpsbabel/gpsbabel/issues/350
Debugging shows it's sending a time to my USB Garmin, but since this seems
to be a non-rollover device, the time is borked on mine anyway.

6 years agoDon't pass MAKEFLAGS to $(MAKE)
Jochen Sprickerhof [Fri, 26 Jul 2019 08:49:11 +0000 (10:49 +0200)]
Don't pass MAKEFLAGS to $(MAKE)

make will pass them automatically. Also they are not meant to be
consumed by make as they are stripped:

Thus, if you do â€˜make -ks’ then MAKEFLAGS gets the value â€˜ks’.

https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html

6 years agoMerge pull request #374 from tsteven4/jeepswarn
GPSBabel [Sat, 13 Jul 2019 02:51:51 +0000 (21:51 -0500)]
Merge pull request #374 from tsteven4/jeepswarn

Fix g++-8 warnings in jeeps.

6 years agoFix g++-8 warnings in jeeps.
tsteven4 [Wed, 10 Jul 2019 22:45:14 +0000 (16:45 -0600)]
Fix g++-8 warnings in jeeps.

6 years agomodify position filter algorithm. (#373)
tsteven4 [Mon, 8 Jul 2019 20:54:46 +0000 (14:54 -0600)]
modify position filter algorithm. (#373)

For routes and tracks, the algorithm is modified to
only remove consecutive points until the distance limit is
exceeded.  This prevents simulataneous removal of points on
an outgoing and return leg, which can lead to gross corruption
of the route/track shape.

A test case that demonstrates the problem with the previous
algorithm is added.

6 years agospelling fixes for GUI (#372)
tsteven4 [Sun, 30 Jun 2019 13:15:17 +0000 (07:15 -0600)]
spelling fixes for GUI (#372)

* clion spelling fixes for GUI.

Care must be taken to not lose translations!

* fix clang tidy performance-unnecessary-value-param

6 years agoGdb string read (#364)
tsteven4 [Fri, 21 Jun 2019 13:54:15 +0000 (07:54 -0600)]
Gdb string read (#364)

* harden gdb reader to long string input.

fix bug in the gdb reader that resulted in file position being lost
if a string was truncated when reading due to the finite buffer size.

fix bug in the gdb reader that could result in data being written outside
the provided buffer.

enhance gdb readers to remove length limit on reading strings.

* whitespace correction.

6 years agoclion spell fixes, and a few cet retirements. (#370)
tsteven4 [Fri, 21 Jun 2019 13:44:52 +0000 (07:44 -0600)]
clion spell fixes, and a few cet retirements. (#370)

* clion spell fixes, and a few cet retirements.

cet retirements were unused.

* more spelling fixes.

6 years agoresharper fixes (#368)
tsteven4 [Tue, 18 Jun 2019 14:33:01 +0000 (08:33 -0600)]
resharper fixes (#368)

* fix "redundant statement", "redundant declaration"

* fix newline at eof.

6 years agoroll Qt to 5.12.4. (#369)
tsteven4 [Mon, 17 Jun 2019 17:18:26 +0000 (11:18 -0600)]
roll Qt to 5.12.4. (#369)

6 years agoremove dependency on glob. (#367)
tsteven4 [Sun, 9 Jun 2019 23:14:36 +0000 (17:14 -0600)]
remove dependency on glob. (#367)

* remove dependency on glob.

and have magproto invoke the rd_deinit function when it uses the
gpx reader (uggh).

* regenerate configure on linux.

6 years agofix potential memory leaks. (#365)
tsteven4 [Thu, 30 May 2019 21:10:53 +0000 (15:10 -0600)]
fix potential memory leaks. (#365)

* fix potential memory leaks.

* fix more memory leaks.

A method to find these is to add -DQT_ASCII_CAST_WARNINGS and
then look for xstrdup in the warnings.

* a few cleanups clazy caught.

6 years agoTrack filter fix (#363)
tsteven4 [Wed, 29 May 2019 22:57:02 +0000 (16:57 -0600)]
Track filter fix (#363)

* Fix compatibility for track filter GUI<->CLI.

Add a week unit for the track filter move option,
in addition to the existing day, hour, minute and second units.

Allow combination of units for track filter move option, e.g.
1w2d3h4m-5s = 1 week + 2 days + 3 hours + 4 minutes - 5 seconds.
This matches historical use, and is expected by the GUI.

Add the week unit to the GUI track filter ui.

Change the limits on the track filter move specs:
week: +/-10000 (unit didn't exit before)
day,hour,minute,second: +/- 100000 (+/-2000 for day before, +/-100 on others).

This resolves #357.
This resolves #358.

* add documentation for track filter move option.

6 years agofix package app booboo. (#366)
tsteven4 [Wed, 29 May 2019 22:12:48 +0000 (16:12 -0600)]
fix package app booboo. (#366)

dmg location was wrong so our attempt to remove any existing
dmg did not work.

6 years agoenable gui to load Qt provided meta catalogs. (#360)
tsteven4 [Wed, 29 May 2019 19:13:53 +0000 (13:13 -0600)]
enable gui to load Qt provided meta catalogs. (#360)

QTranslate::load fails to load a meta catalog if
the absolute file name is given as the filename parameter, and
the directory parameter is omitted.
It succeeds if the file name is provided as the filename parameter
and the directory is provided as the diretory parameter.

This should resolve #359.

6 years agofix stringop-overflow= warning with g++-9. (#362)
tsteven4 [Fri, 24 May 2019 12:12:07 +0000 (06:12 -0600)]
fix stringop-overflow= warning with g++-9. (#362)

Additionally, produce a warning for any conversion errors when
reading XT_TIMET_TIME_MS fields in an xcsv file.

6 years agoFix crash on download from Navin/ZNEX miniHomer (#352)
Konrad Gräfe [Thu, 23 May 2019 14:29:03 +0000 (16:29 +0200)]
Fix crash on download from Navin/ZNEX miniHomer (#352)

This adds the options gps-utc-offset and gps-week-rollover to the
miniHomer driver. By adding them solely to the skytraq driver they were
initialized with nullptr for the miniHomer ultimately leading to a
crash.

Signed-off-by: Konrad Gräfe <konradgraefe@aol.com>
6 years agoupdate Free Software Foundation address. (#354)
tsteven4 [Thu, 23 May 2019 14:08:32 +0000 (08:08 -0600)]
update Free Software Foundation address. (#354)

* update Free Software Foundation address.

* revert strptime fsf address change.

6 years agofix format-overflow= warning with g++-8 in mkshort.cc (#361)
tsteven4 [Thu, 23 May 2019 12:57:43 +0000 (06:57 -0600)]
fix format-overflow= warning with g++-8 in mkshort.cc (#361)

This is Fedora patch 0006-Fix-Wformat-overflow.patch.

6 years agocorrect name of Exec in desktop file. (#353)
tsteven4 [Tue, 14 May 2019 22:50:14 +0000 (16:50 -0600)]
correct name of Exec in desktop file. (#353)

The name of the Exec changed in
https://github.com/gpsbabel/gpsbabel/pull/310

6 years agoFix gbfputcstr when using non UTF-8 encoding. (#348)
tsteven4 [Tue, 14 May 2019 14:06:59 +0000 (08:06 -0600)]
Fix gbfputcstr when using non UTF-8 encoding. (#348)

* Fix gbfputcstr when using non UTF-8 encoding.

This restores gbfputcstr from 75d8ec00f^.
That change could result in implicit conversion of
char* data that was specifically encoded as required for
a format to UTF-16, and then explicitly converted from UTF-16
to UTF-8.  While this was inefficient it could also
result in corruption when the data to be written was encoded
in something other than UTF-8.
For example, the Latin1 encoded 'ö' is '\xf6' will
be converted to the UTF-16 replacement character, and that will
be converter to the UTF-8 replacement character, not the original
character.

This resolves a mystery that was noted in the gdb test where some
strings where corrupted when writing gdb versions 1 and 2.

Instead of using function overloading I deleted the version of
gbfputcstr that accepted a QString to write, forcing the user
to specifically convert the data as appropriate.

* increase accuracy of GPS_Math_Deg_To_Semi.

Use rounding of the calculated floating point value before
conversion to an integer to improve accuracy.
This minimizes
abs(GPS_Math_Semi_to_Deg(GPS_Math_Deg_To_Semi(fpvalue)) - fpvalue).
This allows us do some round trip testing from formats that use
a textual representations of degrees, e.g. gpx, to a binary
format that stores integer represetations of angles in semicircle
units, and back.

It is still possible for round trip differences to occur,
but in all our test cases this hasn't been observed.
The value, the number of decimal places printed for the textual
representation, and the size of floating point variables can
all influence this.

Two GPSBabel generated binary reference files are updated.  All changes
in these files are 1 bit changes in latitude or longitude values as
can be expected from the difference between truncation and rounding.

Two GPSBabel generated gpx reference files are deleted as the source
of the round trip test can be compared to the output now.

A gdb test comparison is now enabled as the round trip results now
match.

* enhance gdb test.

adding a roundtrip test with gdb version 3.

6 years agoMerge pull request #347 from gpsbabel/gpsbabel-patch-3
GPSBabel [Thu, 9 May 2019 21:27:04 +0000 (16:27 -0500)]
Merge pull request #347 from gpsbabel/gpsbabel-patch-3

Create skeletal News

6 years agoDelete newnews
GPSBabel [Mon, 6 May 2019 05:55:50 +0000 (00:55 -0500)]
Delete newnews

6 years agoUpdate NEWS
GPSBabel [Sun, 5 May 2019 15:52:55 +0000 (10:52 -0500)]
Update NEWS

6 years agoCreate skeletal News
GPSBabel [Fri, 3 May 2019 22:48:47 +0000 (17:48 -0500)]
Create skeletal News

6 years agoAdd skeletal NEWS file.
GPSBabel [Fri, 3 May 2019 22:45:57 +0000 (17:45 -0500)]
Add skeletal NEWS file.

6 years agoMerge pull request #346 from tsteven4/r160
GPSBabel [Thu, 2 May 2019 08:26:47 +0000 (03:26 -0500)]
Merge pull request #346 from tsteven4/r160

Roll version number for release 1.6.0.

6 years agoRoll version number for release 1.6.0.
tsteven4 [Tue, 30 Apr 2019 02:18:44 +0000 (20:18 -0600)]
Roll version number for release 1.6.0.

6 years agoMerge pull request #345 from gpsbabel/gpsbabel-patch-2
GPSBabel [Mon, 29 Apr 2019 19:21:27 +0000 (14:21 -0500)]
Merge pull request #345 from gpsbabel/gpsbabel-patch-2

Remove outdated multiline comment in gdb.cc

6 years agoMerge pull request #340 from tsteven4/qt5123
GPSBabel [Mon, 29 Apr 2019 19:06:47 +0000 (14:06 -0500)]
Merge pull request #340 from tsteven4/qt5123

Roll Qt to 5.12.3 and 5.9.8

6 years agoRemove outdated multiline comment in gdb.cc
GPSBabel [Mon, 29 Apr 2019 02:47:46 +0000 (21:47 -0500)]
Remove outdated multiline comment in gdb.cc

6 years agohook GUI up to sort filter. (#342)
tsteven4 [Mon, 22 Apr 2019 13:17:18 +0000 (07:17 -0600)]
hook GUI up to sort filter. (#342)

because the sort filter now works on waypoints
and/or routes and/or tracks the dialog is under
the Miscellaneous menu.

6 years agopull minizip from configure flow. (#339)
tsteven4 [Fri, 19 Apr 2019 00:43:36 +0000 (18:43 -0600)]
pull minizip from configure flow. (#339)

while it was planned to use minizip those
plans were never completed and it was unused.

zlib/contrib/minizip appears to be unmaintained.
some issues e.g. #338.

6 years agoRoll Qt to 5.12.3 and 5.9.8
tsteven4 [Wed, 17 Apr 2019 21:09:43 +0000 (15:09 -0600)]
Roll Qt to 5.12.3 and 5.9.8

6 years agoMerge pull request #336 from gpsbabel/datefix
GPSBabel [Sun, 14 Apr 2019 04:20:39 +0000 (23:20 -0500)]
Merge pull request #336 from gpsbabel/datefix

Fix date in Windows rc copyright.

6 years agoFix date in Windows rc copyright.
Robert Lipe [Sun, 14 Apr 2019 02:58:00 +0000 (21:58 -0500)]
Fix date in Windows rc copyright.

6 years agoFix order of arguments to new upgrade check.
Robert Lipe [Sun, 14 Apr 2019 02:32:25 +0000 (21:32 -0500)]
Fix order of arguments to new upgrade check.

6 years agoCheck in the regenerated setup.iss
Robert Lipe [Sun, 14 Apr 2019 02:24:54 +0000 (21:24 -0500)]
Check in the regenerated setup.iss

6 years agoTurn off debugging mode in upgrade check.
Robert Lipe [Sun, 14 Apr 2019 00:37:27 +0000 (19:37 -0500)]
Turn off debugging mode in upgrade check.

6 years agoFix GUI upgrade check to handle upgrade from x-betaFOO to x.
Robert Lipe [Sun, 14 Apr 2019 00:26:04 +0000 (19:26 -0500)]
Fix GUI upgrade check to handle upgrade from x-betaFOO to x.

6 years agoBump version number for (hopefully short-lived) beta.
Robert Lipe [Sat, 13 Apr 2019 22:45:38 +0000 (17:45 -0500)]
Bump version number for (hopefully short-lived) beta.

7 years agoUpdate dependencies in Makefile.in for release.
Robert Lipe [Mon, 8 Apr 2019 02:49:21 +0000 (21:49 -0500)]
Update dependencies in Makefile.in for release.

7 years agosplit csv lines as QStrings and return a list of all fields. (#332)
tsteven4 [Fri, 5 Apr 2019 14:43:38 +0000 (08:43 -0600)]
split csv lines as QStrings and return a list of all fields. (#332)

* introdcue csv_linesplit

Which is like csv_lineparse, except it gives you a list
of all the values, and it processing the line as a QString.

* introduce gpsbabel::TextStream, use it

in unicsv reader, ozi.

* convert unicsv writer to textstream.

* if a codec is not found list available.

* switch unicsv to CET_CHARSET_UTF8 to avoid

undesired fs conversions.  All conversions are
handled by the codec used by qtextstream.

* output boms with non utf8 unicode codecs.

* use rfc4180 dequote method with unicsv.

* add test for csv quoting w RFC4180.

7 years agoadd documentation for some options. (#334)
tsteven4 [Wed, 3 Apr 2019 23:16:37 +0000 (17:16 -0600)]
add documentation for some options. (#334)

* add documentation for some options.

garmin_gpi: languagecode
gpx: elevprec

* doc wording tweak.

* delete obsolete unused lowranceusr option,

and document new lowranceusr options.

* tweak doc.

7 years agoupdate continous release version for macos. (#331)
tsteven4 [Mon, 25 Mar 2019 23:43:08 +0000 (17:43 -0600)]
update continous release version for macos. (#331)

7 years agoupdate Qt 5.12 builds to 5.12.2. (#329)
tsteven4 [Sat, 16 Mar 2019 20:59:00 +0000 (14:59 -0600)]
update Qt 5.12 builds to 5.12.2. (#329)

* update Qt 5.12 builds to 5.12.2.

* update coverage reporter, kill java8 in docker, add bear.

7 years agoretire queues. (#328)
tsteven4 [Sat, 16 Mar 2019 16:49:51 +0000 (10:49 -0600)]
retire queues. (#328)

7 years ago Introduce a WaypointList class to define the interface to our lists of waypoints...
tsteven4 [Sat, 16 Mar 2019 14:40:10 +0000 (08:40 -0600)]
 Introduce a WaypointList class to define the interface to our lists of waypoints. (#326)

* Introduce a WaypointList class to define the interface to our lists of waypoints.

WaypointList is backed QList, eliminating the use of legacy queues for waypoint lists.

* try to appease xcode wrt std::abs.

* clean up inheritence in WaypointList, RouteList.

also quiet clazy with igc and gpsbabel_optional::optional.
also improve includes in defs.h.

* get rid of unnecessary reinterpret_cast.

and correct pointer constness lost by auto.

7 years agoreplace queues in mkshort. (#327)
tsteven4 [Sat, 16 Mar 2019 14:31:16 +0000 (08:31 -0600)]
replace queues in mkshort. (#327)

Also, hide the contents of mkshort_handle_imp.

7 years agofiddle with nmea waypoint status tracking. (#325)
tsteven4 [Wed, 13 Mar 2019 22:15:25 +0000 (16:15 -0600)]
fiddle with nmea waypoint status tracking. (#325)

Traditionally nmea looks at the Waypoint data member Q
to decide if the Waypoint has been added on to a global list, and
if it has not it deletes the Waypoint so we don't leak memory.

This is problematic when we change the waypoint lists so queues
aren't used.

To overcome this difficulty nmea now uses a derived class of
Waypoint that tracks if the Waypoint has been added or not.

7 years agofix stackfilter issues. (#324)
tsteven4 [Wed, 13 Mar 2019 17:13:07 +0000 (11:13 -0600)]
fix stackfilter issues. (#324)

1. correct defect in the new RouteList::swap method.
2. correct an old bug in stackfilter that cleaned up
waypts on exit, but not routes or tracks.
3. enhance stackfilter test to test routes and tracks as well
as waypts.

7 years agoreplace random queues with QLists. (#323)
tsteven4 [Mon, 11 Mar 2019 23:50:27 +0000 (17:50 -0600)]
replace random queues with QLists. (#323)

7 years agoMerge pull request #296 from tsteven4/routelist
tsteven4 [Sun, 10 Mar 2019 16:08:49 +0000 (10:08 -0600)]
Merge pull request #296 from tsteven4/routelist

Introduce a RouteList class.

7 years agoconvert ozi io to QTextStream (#315)
tsteven4 [Sun, 10 Mar 2019 15:10:36 +0000 (09:10 -0600)]
convert ozi io to QTextStream (#315)

* convert ozi io to QTextStream.

and add an option to set the codec.
default the codec to windows-1252, which matches historic
usage but not recent behavior.

fix a memory leak, csv_lineparse needs to die.

fix a mistranslation with QString::arg.

* enhance ozi test for routes and tracks.

* eliminate csv_lineparse in ozi.

* eliminate obsolete commented code in ozi.

* update encoding comments for ozi.

* add doc for ozi codec option.

7 years agoregenerate translation files including command line strings. (#319)
tsteven4 [Sun, 10 Mar 2019 14:24:52 +0000 (08:24 -0600)]
regenerate translation files including command line strings. (#319)

* spelling fixes in mainwindow.cc

* regenerate compiled translation files.

add a process to capture the translated command line strings, &
update the corresponding translation source and compiled files.

remove gui context from gpsbabel_it.ts.

correct errors in mainwindow setting up command line translations.

deploy compiled command line translations.

* correct permissions on new pro file.

* delete obsolete and empty translation files.

7 years agoadd CMakeLists.txt file for GUI. (#322)
tsteven4 [Sun, 10 Mar 2019 03:11:24 +0000 (20:11 -0700)]
add CMakeLists.txt file for GUI. (#322)

7 years agoMerge pull request #298 from gpsbabel/skytraq
GPSBabel [Sun, 10 Mar 2019 00:56:02 +0000 (18:56 -0600)]
Merge pull request #298 from gpsbabel/skytraq

Essentially revert the skytraq part of PR#286.

7 years agoMerge pull request #321 from gpsbabel/gpsbabel-patch-3
GPSBabel [Sun, 10 Mar 2019 00:55:18 +0000 (18:55 -0600)]
Merge pull request #321 from gpsbabel/gpsbabel-patch-3

Drop unused get_crc32_s

7 years agoMerge pull request #320 from gpsbabel/gpsbabel-patch-2
GPSBabel [Sun, 10 Mar 2019 00:54:44 +0000 (18:54 -0600)]
Merge pull request #320 from gpsbabel/gpsbabel-patch-2

Remove dead code: get_crc32_s

7 years agoMerge branch 'master' into skytraq
GPSBabel [Sat, 9 Mar 2019 23:25:22 +0000 (17:25 -0600)]
Merge branch 'master' into skytraq

7 years agoDrop unused get_crc32_s
GPSBabel [Sat, 9 Mar 2019 23:11:38 +0000 (17:11 -0600)]
Drop unused get_crc32_s

7 years agoRemove dead code: get_crc32_s
GPSBabel [Sat, 9 Mar 2019 23:08:07 +0000 (17:08 -0600)]
Remove dead code: get_crc32_s

7 years agoclean up gui main and fix a png. (#313)
tsteven4 [Sat, 9 Mar 2019 16:44:04 +0000 (09:44 -0700)]
clean up gui main and fix a png. (#313)

* clean up gui main and fix a png.

- fix libpng warning: iCCP: known incorrect sRGB profile
  issue with runit.png with pngcrush.

- fix includes for gui/main.cc, including removal of
  CoreFoundation.h
- use QApplication static methods instead of going directly
  to the underlying QCoreApplication static methods.

 - no path setting in GUI, instead pass the full path to gpsbabel when using QProcess::start.

in formatload.cc xlt() use qt methods to get a char* instead of
resorting to stdlib.  At this point Qt assumes all translate strings
are utf8.  However, the formatload xlt intent doesn't work because
1) MainWindow::LoadLanguage hasn't been called when
   MainWindow::loadFormats is called.
2) the translations don't exist for the format bits from gpsbabel
   that fromatload tries to translate.  I think this was the intent
   of the gpsbabel_*.ts files which are very out of date and no
   longer distributed.

7 years agospelling fixes in mainwindow.cc (#318)
tsteven4 [Sat, 9 Mar 2019 14:39:59 +0000 (07:39 -0700)]
spelling fixes in mainwindow.cc (#318)

7 years agonormalize connections in GUI (#316)
tsteven4 [Thu, 7 Mar 2019 22:34:18 +0000 (15:34 -0700)]
normalize connections in GUI (#316)

as suggested by clazy.

7 years agoMerge pull request #312 from tsteven4/tidygui3
tsteven4 [Sun, 3 Mar 2019 22:58:54 +0000 (15:58 -0700)]
Merge pull request #312 from tsteven4/tidygui3

clang-tidy fixes for the gui